<%include file="user_header.html"/>
<div class="content">
    <div class="content01">
        <!--中间内容 start-->
	    <div class="cLeft">
		    <!--基本资料 start-->
		    <div class="basicProfile">
			    <div class="t">
			        <strong>${nickname}</strong>
					&nbsp;|&nbsp;<a href="/userrank/" target="_blank">UP主荣誉排名</a>:${rank}
					&nbsp;|&nbsp;<a href="">更改个人信息</a>
			    </div>
			    <div class="mysign"><em>${signature}</em></div>
			    <div class="profile">
				    <div class="p">
					    <label>性别：</label>
					    <span>${sex}</span>
				    </div>
				    <div class="p">
					    <label>所在地：</label>
					    <span>${location}</span>
				    </div>
				    <div class="p">
					    <label>出生日期：</label>
					    <span>${dateofbirth}</span>
				    </div>
				    <div class="p">
					    <label>兴趣爱好：</label>
					    <span>${interests}</span>
				    </div>
				    <div class="p">
					    <label>简介：</label>
					    <span>${brief}</span>
				    </div>
					<div class=p>
						<label>统计信息:</label>
						<span>
						&nbsp;UP主共上传了&nbsp;[<a href="/user/${uid}/videos/all/1">${videos}个视频</a>]&nbsp;
						收藏了&nbsp;[<a href="/user/${uid}/favorites/all/1">0个视频</a>]&nbsp;<br>
						加了&nbsp;[<a href="/user/${uid}/friends/all/1">0个好友</a>]&nbsp;
						此外发表了&nbsp;[<a href="/user/${uid}/comments/all/1">0条评论</a>]&nbsp;<br>
						观看过&nbsp;[<a href="/user/${uid}/views/all/1">0次视频</a>]&nbsp;
						发射过&nbsp;[<a href="/user/${uid}/subs/all/1">0个弹幕</a>]&nbsp;<br>
						更过分地是，UP主尾行过&nbsp;[<a href="/user/${uid}/visits/all/1">0个用户</a>]&nbsp;
						留言了&nbsp;[<a href="/user/${uid}/messages/all/1">0次</a>]&nbsp;
						</span>
					</div>
			    </div>
		    </div>			
		    <!--基本资料 end-->
			<!--扩展资料 start-->
			<!--扩展资料 end-->
		    <!--好友动态 start-->
			<div class="newsFeeds">
			    <div class="nf_t">
				    <strong>动态</strong>
			    </div>
			    <div class="nf_body" id="divFriendFeed">
					<div class="feedL">
					<!-- type,arg,showmsg,url,urlname,datestr -->
					%for feed in feeds:
						<div class="fl_t">
							<span class="icon"><img width="16" height="16" alt="" src="/static/sw_icon_004.gif"></span>
							<span class="c">
							%if feed[0] in [u'评论']:
								UP主 ${feed[0]} 了 <a target="_blank" href="${feed[3]}">${feed[4]}</a>：<a target="_blank" href="${feed[3]}">${feed[2]}</a>
							%elif feed[0] in [u'访问']:
								UP主 尾行 了 <a target="_blank" href="${feed[3]}">${feed[4]}</a>
							%elif feed[0] in [u'收藏',u'观看',u'发布']:
								UP主 ${feed[0]} 了 <a target="_blank" href="${feed[3]}">${feed[4]}</a>
							%elif feed[0] in [u'留言']:
								UP主 在 <a target="_blank" href="${feed[3]}">${feed[4]}</a> 的空间上留了言
							%elif feed[0] in [u'弹幕']:
								UP主 在 <a target="_blank" href="${feed[3]}">${feed[4]}</a> 的上发送了弹幕
							%endif
							</span>
							<span class="t">${feed[5]}</span>
						</div>
					%endfor
					</div>
				</div>
			</div>
		    <!--好友动态 end-->
		    <!--留言 start-->
			<div class="caBody" id="divNote">
			    <div class="t"><strong>留言板</strong></div>
			    <div class="commentBody" id="divCreateNote">
				    <div class="cbBody">
				    </div>
			    </div>
			<!-- vid,date,content,vnick  -->
			%for message in messages:
			    <div class="commentBody" id="divNote_388476">
					<div class="userPhoto">
						<a href="/user/${message[0]}"><img width="50" height="50" src="/icon/${message[0]}" alt="${message[3]}"></a>
					</div>
					<div class="cbBody">
						<div class="h"><a href="/user/${message[0]}">${message[3]}</a>&nbsp;&nbsp;&nbsp;${message[1]}</div>
						<div class="c">${message[2]}</div>
					</div>
				</div>
			%endfor
			</div>
		    <!--留言 end-->

	    </div>
	    <!--中间内容 end-->
	    <!--右侧内容 start-->
		<div class="cRight">
		    
		    <!--最近访客 start-->
		    <div class="qdrBox" id="divVisitor">
				<div class="t">
					<strong>最近访客</strong>
				<!-- <span><a href="/f/103435817/friends/1">更多&gt;&gt;</a></span> -->
				</div>
				<div class="c">
					<div class="memberList">
					<!-- vid,date,vnick -->
					%for v in visitors:
						<div class="m">
							<a title="${v[2]}" href="/user/${v[0]}"><img width="50" height="50" alt="${v[2]}" src="/icon/${v[0]}"></a>
							<p style="font-size:10px">${v[1]}</p>
						</div>
					%endfor
					</div>
				</div>
			</div>
		    <!--最近访客 end-->
		    <!--他的好友 start-->
		    <div class="qdrBox" id="divFriend">
				<div class="t"><strong>他的好友</strong></div>
				<div class="c">
					<div class="memberList">
					<!-- id,nick -->
					%for f in friends:
						<div class="m">
							<a title="${f[1]}" href="/user/${f[0]}"><img width="50" height="50" alt="${f[1]}" src="/icon/${f[0]}"></a><p><a title="${f[1]}" href="/user/${f[0]}">${f[1]}</a></p>
						</div>
					%endfor
					</div>
				</div>
			</div>
		    <!--他的好友 end-->
	    </div>
	    <!--右侧内容 end-->
    </div>
	</div>
</div>
</div>
<%include file="user_footer.html"/>

